package cn.esale.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import cn.esale.dao.CommonDao;
import cn.esale.entity.SaleProduct;
import cn.esale.service.ProductBiz;

@Service("productBiz")
public class ProductBizImpl implements ProductBiz {
	@Autowired
	@Qualifier("commonDao")
	private CommonDao commonDao;
	
	public List<SaleProduct> findAll() {
		// TODO Auto-generated method stub
		return commonDao.search("from SaleProduct");
	}

}
